package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.CompanyFinancingEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CompanyFinancingRepository  extends JpaRepository<CompanyFinancingEntity, String> {

    Page<CompanyFinancingEntity> findByCompanyIdOrderByTime(String companyId, Pageable pageable);

    List<CompanyFinancingEntity> findByCompanyId(String companyId);

    List<CompanyFinancingEntity> findByCompanyIdOrderByTimeDesc(String companyId);

}
